/* 设置版心 */
.w {
    width: 1200px;
    margin: 0 auto;
}


/* 头部背景样式 */
.header-nav {
    width: 100%;
    height: 30px;
    background-color: #f1f1f1;
}
.login {
    float: left;
    line-height: 30px;
}

/* 头部-个人导航栏*/
.person-nav {
    float: right;
}
.person-nav ul li {
    position: relative;
    display: inline;
    margin: 9px 10px 0;
    line-height: 30px;

}
/* 在个人导航栏加入 | */
.person-nav ul li span {
    display: inline-block;
    box-sizing: border-box;
    width: 1px;
    height: 12px;
    background-color: #666;
    line-height: 33px;
}

.person-nav .triangle::after {
    position: absolute;
    top: -5px;
    right: -14px;
    content: '\e91e';
    font-family: 'icomoon';
}
.search {
    position: relative;
    height: 105px;
}
.search .logo a {
    display: inline-block;
    width: 171px;
    height: 61px;
    margin-top: 22px;
}
/* 搜索盒子 */

/* 搜索框+按钮  */
.search-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 320px;
}

.search-case input[type="search"] {
    width: 452px;
    height: 32px;
    border: 2.5px solid #b1191a;
    box-sizing: border-box;
    color: #ccc;
}

.search-case input[type="button"] {
    width: 80px;
    height: 32px;
    margin-left: -5px;
    background-color: #b1191a;
    color: #fff;
}

/* 搜索盒子  下面的商品导航 */
.search-nav .items {
    width: 500px;
    height: 16px;
}
.search-nav .items a {
    display: inline;
    padding: 0 10px;
}
/* 首个字体变红 */
.search-nav .items a:nth-child(1) {
    color: red;
}

/* 购物车 */
.search .shop {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 140px;
    height: 35px;
    background-color:#f7f7f7;
    border: 1px solid #dfdfdf;
    text-align: center;
    line-height: 35px;
    font-size: 14px;
}
.search .shop p::before {
    content: '\e93a';
    font-family: 'icomoon';
    margin-right: 5px;
    color:#b1191a;
}

.search .shop p::after {
    content: '>';
    margin-right: 5px;
    padding-left: 5px;
}
.search .shop span {
    position: absolute;
    top: -17px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    background-color: red;
    color: #fff;
}
.search .shop span::after {
    position: absolute;
    top: -7px;
    right: 6px;
    content: '8';
}


/* 主要内容 */
/* 主导航栏 */
.mian-nav {
    height: 45px;
}
.mian-nav h3 {
    float: left;
    width: 210px;
    height: 45px;
    background-color: #b1191a;
    line-height: 45px;
    text-align: center;
    font-size: 18px;
    color: #fff;
}
.mian-nav ul li {
    float: left;
    width: 100px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    font-size: 15px;
}
/* 横线 */
.hengxian {
    width: 100%;
    height: 3px;
    background-color: #b1191a;
}
/* 详细商品导航栏 */
.detailshop-nav {
    float: left;
    width: 210px;
    height: 465px;
    background-color: #c81623;
}
.detailshop-nav ul li {
    width: 208px;
    height: 31px;
    margin-left: 3px;
    line-height: 31px;
    text-align: center;
    font-size: 14px;
    color: #fff;
}
.detailshop-nav ul li a {
    color: #fff;
}
/* 重点 */
.detailshop-nav ul li:hover {
background-color: #fff;
}
/* 重点 */
.detailshop-nav ul li:hover a {
    color: #c81623;
}

.shop-pic {
    float: left;
    width: 721px;
    height: 455px;
    margin: 10px 10px;
}

/* 购物新闻 */
.newflash {
    float: right;
    width: 243px;
    height: 455px;
    margin-top: 9px;
}
.newflash .news {
    width: 243px;
    height: 165px;
    border: 1px solid #e4e4e4;
}
.newflash .news h4 {
    position: relative;
    height: 33px;
    border-bottom: 1px dotted #e4e4e4;
    line-height: 33px;
}
.newflash .news h4 span {
    margin-left: 5px;
    font-size: 16px;
    font-weight: 700;
}
.newflash .news h4 a {
    position: absolute;
    top: 0;
    right: 3px;
}
/* 新闻内容 */
.newflash .news-content {
    width: 243px;
    height: 125px;
}
.newflash .news-content ul li {
    width: 243px;
    height: 24px;
    margin: 2px 0 0 2px;
}
.newflash .news-content strong {
    font-weight: 700;
}

/* 省略号 */
.newflash .news-content ul li {
  /* 如果文字显示不开，不自动换行 */
  white-space: nowrap;
  /* 如果文字显示不开，自动换行  */
  /* white-space: normal; */
  /* 溢出部分隐藏 */
  overflow: hidden;
  /* 文字溢出用省略号显示 */
  text-overflow: ellipsis;
}

/* 生活服务导航栏 */
.lifeservice {
    width: 243px;
    height: 210px;
    border: 1px solid #e4e4e4;
}
.lifeservice ul li {
    float: left;
    width: 60.25px;
    height: 70px;
    border-right: 1px solid #e4e4e4;
    border-bottom: 1px solid #e4e4e4;
    text-align: center;

}

.lifeservice ul li a {
    display: inline-block;
    width: 25px;
    height: 28px;
    background: url(../icons/icons.png) no-repeat;
    background-position: -14px -12px;
    margin-top: 10px;
}

.lifeservice ul li:nth-child(2) a {
    background-position: -80px -12px;
}

.lifeservice ul li:nth-child(3) a {
    background-position: -140px -12px;
}

.lifeservice ul li:nth-child(4) a {
    background-position: -205px -12px;
}

.lifeservice ul li:nth-child(5) a {
    background-position: -14px -86px;
}

.lifeservice ul li:nth-child(6) a {
    background-position: -80px -86px;
}

.lifeservice ul li:nth-child(7) a {
    background-position: -140px -86px;
}

.lifeservice ul li:nth-child(8) a {
    background-position: -205px -86px;
}

.lifeservice ul li:nth-child(9) a {
    background-position: -14px -155px;
}

.lifeservice ul li:nth-child(10) a {
    background-position: -80px -155px;
}

.lifeservice ul li:nth-child(11) a {
    background-position: -140px -155px;
}

.lifeservice ul li:nth-child(12) a {
    background-position: -205px -155px;
}

.lifeservice ul li span {
    display: block;
    width: 24px;
    height: 16px;
    margin: 0 auto;
}

/* 生活服务广告图片 */
.lifesercice-pic {
    width: 245px;
    margin-top: 7px;
}

.lifesercice-pic img {
    width: 100%;
}


/* 秒杀活动 */

/* 秒杀头部 */
.seckill-nav {

    height: 163px;
}

.seckill-nav .seckill-hd {
    float: left;
    width: 205px;
    height: 163px;
    background-color: #5c5251;
    text-align: center;
    line-height: 163px;
}

.seckill-nav .seckill-shop {
    float: left;
}
.seckill-nav .seckill-shop ul li {
    width: 249px;
    display: inline-block;
}
.seckill-nav .seckill-shop ul li a img {
    width: 250px;
}

.seckill-nav .seckill-shop ul li:nth-child(n+2) {
    margin-left: -4px;
}



/* 楼层区域制作start */

/*   一楼家电区域 */

/* 标题栏 */
.frist-floor {
    height: 400px;
}
.frist-floor h4 {
    float: left;
    font-size: 20px;
    color: #c81623;
}
.floor-hd-nav {
    float: right;
}
.floor-hd-nav .style_red {
    color: #c81623;
}
.floor-hd-nav ul li {
    display: inline-block;
    margin-right: 10px;
    margin-top: 8px;
    color: 14px;
}
.floor-hd-nav ul li:nth-child(10) {
    margin-right: 0px;
}
.floor-hd-nav ul li a {
    margin-right: 10px;
}


.hengxian1 {
    height: 3px;
    background-color: #b1191a;
}
/* 商品区域 */

.two-floor .two-floor-hd {
    float: left;
    width: 210px;
    overflow: hidden;
}
.two-floor .two-floor-hd ul li {
    float: left;
    width: 85px;
    height: 34px;
    text-align: center;
    line-height: 34px;
    border-bottom: 1px solid #ccc;
    margin-left: 10px;
}

.two-floor .sanxing {
    margin-top: 15px;
}

.two-floor .two-floor-pic {
    float: left;
}
.two-floor .two-floor-content div {
    float: left;
}
.two-floor .two-floor-content .content1 {
    width: 219px;
}
.two-floor .two-floor-content .content1 ul li:nth-child(1){
    border-bottom: 1px solid #ccc;
}
.two-floor .two-floor-content .content2 {
    border: 1px solid #ccc;
}
.two-floor .two-floor-content .content1 ul li {
    float: left;
}

/* 二 */

/* 底部 */
.footer {
    height: 400px;
    background-color: #f5f5f5;
    overflow: hidden;
}

.footer-hd {
    height: 80px;
    margin-top: 20px;
    border-bottom: 2px solid #ccc;
}
.footer .footer-nav .footer-hd ul li {
    float: left;
    width: 300px;
    height: 50px;

}

.footer .footer-nav ul li h5 {

    float: left;
    width: 50px;
    height: 50px;
    background: url(../icons/icons.png) no-repeat -252px -2px;
    margin-left: 40px;
    margin-right: 8px;
}
.footer .footer-nav ul li h6 {

    height: 20px;
    font-size: 14px;
    margin-top: 8px;
    
}

.footer .footer-nav ul li p {

    height: 20px;
    font-size: 12px;
   
}

.footer-content {
    height: 200px;
    border-bottom: 3px solid #ccc;
}

.footer-content dl {
    float: left;
    width: 200px;
}

.footer-content dt {
    font-size: 20px;
    margin-left: 50px;
    margin-top: 15px;
    margin-bottom: 10px;
}
.footer-content dd {
    margin-left: 50px;
}

.footer-content ul {
    float: right;
    width: 100px;
    text-align: center;
    margin-top: 25px;
}

.footer-content ul li {
    width: 100px;
}

.footer-footer {
    text-align: center;
    margin-top: 10px;
}
.footer-footer .footer-ft-nav {
    height: 25px;
    padding-left: 160px;
}
.footer-footer .footer-ft-nav ul li {
    position: relative;
    float: left;
    margin-right: 16px;
}

.footer-footer .footer-ft-nav ul li a::after {
    position: absolute;
    top: 2px;
    right: -8px;
    content: '';
    width: 1px;
    height: 15px;
    background-color: #ccc;

}

.footer-footer h4 {
    margin-top: 15px;
    font-size: 14px;
}

.footer-footer h5 {
    font-size: 12px;
}



